import  request from '@/utils/request.js'
// 所有分类的请求接口
export function  channels(){
   return request({
     url:'/v1_0/channels',
     method:'get'
   })
}
export function  articles(id){
  return request({
    url:`/v1_0/articles?channel_id=${id}&timestamp=${Date.now()}`,
    method:'get'
  })
}